<div class="x-nav" th:fragment="nav(towName, threeName)">
          <span class="layui-breadcrumb">
            <a href="">首页</a>
            <a href="" th:text="${towName}"></a>
            <a href="" th:text="${threeName}"></a>
          </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" onclick="location.reload()" title="刷新">
        <i class="layui-icon layui-icon-refresh" style="line-height:30px"></i></a>
</div>

<!--挂载表单的reset事件在nav上-->
<script>
    function searchReset(that) {
        $(that).parents('form').find('input').val('');
        $(that).parents('form').find('select').val('');
        $(that).parents('form').find('checkbox').val('');
        $(that).parents('form').find('radio').val('');
        $('[lay-filter="sreach"]').click();
    }
</script>